package com.sunwayworld.basemodule.business.operationbatch.resource;

import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.business.operationbatch.bean.LimsPreTaskSupplementBean;
import com.sunwayworld.basemodule.business.operationbatch.service.LimsPreTaskSupplementService;
import com.sunwayworld.framework.support.base.resource.GenericResource;

@RequestMapping("/secure/basemodule/business/pre-task-supplements")
public interface LimsPreTaskSupplementResource extends GenericResource<LimsPreTaskSupplementService, LimsPreTaskSupplementBean, Long> {
    @PostMapping("/{operationBatch}/supplement-to-columns/queries")
    Page<LimsPreTaskSupplementBean> selectPreTaskSupplementToColumns(@PathVariable Long operationBatch, RestJsonWrapperBean wrapper);

    @PostMapping("/{preFolderId}/update/supplement")
    void updateSupplementByPreFolder(@PathVariable Long preFolderId, RestJsonWrapperBean wrapper);
}
